package com.newsee.remote.common.database.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liangzhichen
 * @since 2019-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SH_MaterialPurveyCompany")
public class ShMaterialPurveyCompany extends Model<ShMaterialPurveyCompany> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @TableField("PurveyID")
    private Long PurveyID;

    @TableField("MaterialID")
    private Long MaterialID;

    @TableField("Price")
    private BigDecimal Price;

    @TableField("ExpiryDate")
    private LocalDateTime ExpiryDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
